package com.xinlong.service.impl;

import com.xinlong.dao.IRoutedao;
import com.xinlong.entity.Route;
import com.xinlong.service.IRouteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RouteServiceimpl implements IRouteService {

    @Autowired
   private IRoutedao iRoutedao;

    public List<Route> selectRoute() {
        return iRoutedao.selectRoute();
    }

    public Route selectRoutebyid(Integer id) {
        return iRoutedao.selectRoutebyid(id);
    }

    public void sevaRoute(Route route) {
        iRoutedao.sevaRoute(route);
    }

    public void deRoute(Integer id) {
        iRoutedao.deRoute(id);
    }

    public void upRoute(Route route) {
        iRoutedao.upRoute(route);
    }

    public void delRoleTopermissin(Integer id) {

    }
}
